package com.pineapple.module.core.standards.area.service;

import java.sql.Connection;
import java.util.List;

import com.pineapple.module.core.standards.area.domain.Area;
import com.pineapple.module.core.standards.area.domain.AreaCriteria;
import com.pineapple.module.core.standards.area.domain.AreaSearch;

public class AreaManager {
	AreaDAO dao = null;

	public AreaManager(){
		dao = new AreaDAO();
	}

	public List<AreaSearch> search(AreaCriteria criteria,Connection conn)throws Exception{
		return dao.search(criteria, conn);
	}

	public void add(Connection conn,Area user)throws Exception{
		dao.add(conn, user);
	}
	public void edit(Connection conn,Area user)throws Exception{
		dao.edit(conn, user);
	}
	public void delete(Connection conn,String userIds)throws Exception{
		dao.delete(conn, userIds);
	}
	public Area searchById(Connection conn,int id)throws Exception{
		return dao.searchById(conn, id);
	}

}
